﻿using Md.Api.Model.Manage.SysPost.Request;
using Md.Dapper.Repositories.Md;

namespace Md.Api.Service.Manage.SysPost;
/// <summary>
/// 通过岗位编号获取系统岗位信息服务
/// </summary>
public class GetSysPostByPostIdService : ApiBase<RequestGetSysPostByPostIdModel>
{
    /// <summary>
    /// 系统岗位仓储
    /// </summary>
    public SysPostRep sysPostRep { get; set; }
    /// <summary>
    /// 执行
    /// </summary>
    protected override void ExecuteMethod()
    {
        var res = sysPostRep.GetSysPostByPostId(Parameter.PostId);

        Result.Data = res;
    }
}

